<?php
/* wwwschool project

Copyright (C) 2009  Phillip Aldridge
Email : info@imi21.com
Web site http://www.imi21.com

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

/**
 *  wwwschool project
 *  File : main configuration 
 */  
 
  define ('W3DEBUG',true); // set to false for production and true for development
  
  // database
  define ('DB_HOST','localhost');
  define ('DB_NAME','db_wwwschool');   
  define ('DB_USER','root');
  define ('DB_PASSWORD',''); 
  
  // paths
  define ('WS3_PATH','C:\Program Files\xampp\xampp\htdocs\www\wwwschool\project1');   
  define ('WS3_URL_PATH','http://localhost/www/wwwschool/project1/www/'); 
  define ('WS3_TEMPLATE','templates/html5/');  
  
  // language
  define ('WS3_LANGAUGE','en'); 
  
//
$WS3_SCORE_TYPE = array('No score','Percentage','Pass/fail') ;
$WS3_ACCESS_TYPE = array('No limit','Once') ; 
$WS3_MEDIA_TYPE = array('Text','HTML','PDF','VIDEO') ;  

//
  $f=""; 
  /**
  * set all the default values
   
  
  //$DATA=array();
  //$SESSION=array();
  */

// to do move this to another file  
require_once 'classes/WS3session.php';
require_once 'classes/WS3database.php';
require_once 'language/'.WS3_LANGAUGE.'.php';

if (!isset($session) ){
$session = new WS3_Session();
}
  
if (W3DEBUG) 
{
  $GLOBALS['W3DEBUG']=array();
  error_reporting(E_ALL);
  ini_set('display_errors', '1');
  array_push( $GLOBALS['W3DEBUG'],"Debugging is active" );
  include 'classes/WS3debug.php'; 
}

?>